package cn.xxi.ai.application.dto;

import lombok.Getter;

import java.time.LocalDateTime;
import java.util.Map;

@Getter
public class NodeFinished extends FinishedEvent {

    private final String nodeId;
    private final String nodeType;
    private final String title;
    private final Map<String, Object> inputs;
    private final Map<String, Object> outputs;

    public NodeFinished(String nodeId, String nodeType, String title,
                        Map<String, Object> inputs, Map<String, Object> outputs,
                        Status status, String error, LocalDateTime startedAt) {
        super(status, error, startedAt);
        this.nodeId = nodeId;
        this.nodeType = nodeType;
        this.title = title;
        this.inputs = inputs;
        this.outputs = outputs;
    }
}
